public class Bee extends FlyingObject {
    //被击中状态
    private int flag;
    //速度
    private int xSpeed;
    private int ySpeed;

//    int awardType;

    public Bee(){
        image = ShootGame.bee0;
        width = image.getWidth(null);
        height = image.getHeight(null);
        xSpeed = 1;
        ySpeed = 1;
        x = (int)(Math.random()*ShootGame.width);
        y = 50;
        life = 1;
//        awardType = 1;
    }




    //小蜜蜂移动方法
    @Override
    public void move() {
        x += xSpeed;
        y += ySpeed;
        if(x == ShootGame.width - width){
            xSpeed = -1;
        }
        if(x == 0){
            xSpeed = 1;
        }
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public int getxSpeed() {
        return xSpeed;
    }

    public void setxSpeed(int xSpeed) {
        this.xSpeed = xSpeed;
    }

    public int getySpeed() {
        return ySpeed;
    }

    public void setySpeed(int ySpeed) {
        this.ySpeed = ySpeed;
    }
}
